<%--
  Created by IntelliJ IDEA.
  User: jiangxuchuan
  Date: 2022/1/8
  Time: 14:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Judge Day</title>
</head>
<body>
    <%
      request.setAttribute("day","Monday");
    %>
    <c:choose>
        <c:when test="${requestScope.day == 'Monday'}">
            <h1 style="text-align: center;color: aquamarine">${requestScope.day}</h1>
            <h1 style="color: fuchsia;text-align: center">Today is Monday</h1>
        </c:when>
        <c:otherwise>
            <h1 style="text-align: center;color: aquamarine">${requestScope.day}</h1>
            <h1 style="color: red;text-align: center">Today is ${requestScope.day}</h1>
        </c:otherwise>
    </c:choose>
</body>
</html>
